package com.wwz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 物业收费
 * @date 2022/03/25 56:12:26
 */
@Data
@ApiModel("物业收费")
@TableName("charge")
@EqualsAndHashCode(callSuper = false)
public class Charge implements Serializable {


    @TableId(type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String id;


    @ApiModelProperty("收费项")
    private String chargeType;


    @ApiModelProperty("收费人")
    private String chargeUser;

    @ApiModelProperty("收费人姓名")
    @TableField(exist = false)
    private String chargeUserName;


    @ApiModelProperty("业主")
    private String houseUser;


    @ApiModelProperty("物业费")
    private String money;


    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("收费类型")
    private String type;

}
